<extend name="Public/layout"/>
<block name="head">
<link rel="stylesheet" href="__PUBLIC__css/index.css?a=<php>echo time()</php>">
<link rel="stylesheet" href="__PUBLIC__css/ceping.css?a=<php>echo time()</php>">
<script src="__PUBLIC__assets/better-scroll/bscroll.min.js"></script>
<script src="__PUBLIC__js/ceping.js"></script>
</block>

<block name="main">
    <div class="submit-question">
        <a href="/Home/Platform/plat_qusetion">没有找到想要的测评的平台？点这里提交测评信息~</a>
    </div>
    <div class="tabs">
        <div class="nav-swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide <if condition='($_GET[val] eq 1) OR (!$_GET[val]) '>active</if>" onclick="video_app(this, 1)">综合排序</div>
                <div class="swiper-slide <if condition='$_GET[val] eq 2 '>active</if> " onclick="video_app(this, 2)">国资系</div>
                <div class="swiper-slide <if condition='$_GET[val] eq 3 '>active</if> " onclick="video_app(this, 3)">上市系</div>
                <div class="swiper-slide <if condition='$_GET[val] eq 4 '>active</if> " onclick="video_app(this, 4)">风投系</div>
                <div class="swiper-slide <if condition='$_GET[val] eq 5 '>active</if> " onclick="video_app(this, 5)">银行系</div>
                <div class="swiper-slide <if condition='$_GET[val] eq 6 '>active</if> " onclick="video_app(this, 6)">民营系</div>
            </div>
        </div>
    </div>
    <div class="block-cp" id="listWrapper">
        <ul class="cp-wrapper">
            <foreach name="video_app" item="v">
                    <li class="cp-item">
                    <if condition="$v.nexus eq 1">
                        <a href="{:U('Video/appraisal_info',array('p_id'=>$v[platform_id],'v_id'=>$v[video_info][id],'cate_id'=>$v[cate_id]))}">
                    <else/>
                        <a href="{:U('Video/appraisal_info',array('a_id'=>$v[id],'v_id'=>$v[video_info][id],'cate_id'=>$v[cate_id]))}">
                    </if>
                            <div class="cp-item-left">
                            <if condition="$v.house_id gt 0">
                                <img src="{$v.video_info.pic}" alt="">
                            <else/>
                                <img src="{$v.news_info.pic}" alt="">
                            </if>
                            </div>
                            <div class="cp-item-right">
                                <h5>{$v.title}</h5>
                                <p class="cp-time">测评时间：{$v.add_time|date="Y-m-d",###}</p>
                            </div>
                        </a>
                    </li>
            </foreach>
        </ul>
    </div>

<!--底部-->
</block>
<block name="js">
    <script type="text/javascript">
        var wrapper1 = document.querySelector("#listWrapper")
        var scroll1 = new BScroll(wrapper1, {
            probeType: 1,
            click: true,
        })
        function video_app(obj, val) {
            $(obj).addClass('active').siblings().removeClass('active');
            $.post('{:U("Video/appraisal")}',{val:val},function() {
                location.href="/Home/Video/appraisal/val/"+val;
            });
        }
    </script>
</block>